<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 13:15:06
         compiled from ".\templates\billOriginalOmList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:272245256a85a085148-19538297%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '33a2d253ed018c7da74fd0c20dfcda2a277ee0aa' => 
    array (
      0 => '.\\templates\\billOriginalOmList.tpl',
      1 => 1337154336,
    ),
  ),
  'nocache_hash' => '272245256a85a085148-19538297',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.date_format.php';
if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
?><?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<script type="text/javascript">
function confirmDelete()
{
	if(confirm('Are You Sure 1 st time?'))
	{
		if(confirm('Are You Sure 2nd time?'))
		  {
		    if(confirm('Are You Sure ? This is Final Delete...!!!'))
			    return true;
			  else
			    return false;
		  }
	}
	else
	  return false;
}
</script>
<div class="contentDiv">
	<table align="center" cellpadding="4">
	<tr class="table1">
		<th colspan="3">&nbsp;</th>
		<th>Bill No</th>
		<th>Part Name</th>
		<th>Bill Date</th>
		<th>Amount</th>
	</tr>
	<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('bill')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		<tr>
			<td><a href="billOriginalOm.php?billId=<?php echo $_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['id'];?>
">Edit</a></td>
			<td><a href="billOriginalOmDelete.php?billId=<?php echo $_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['id'];?>
" onclick="return confirmDelete();">Delete</a></td>
			<td><a href="billOriginalOmDetail.php?billId=<?php echo $_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['id'];?>
">Print</a></td>
			<td align="center"><?php echo $_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billNo'];?>
</td>
			<td align="left"><?php echo $_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyName'];?>
</td>
			<td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['billDate'],"%d-%m-%Y");?>
</td>
			<td align="right"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('bill')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['grossTotal'],"%.0f");?>
</td>
		</tr>
	<?php endfor; endif; ?>
	</table>
</div>
<?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?> 